<div class="form-inline">
  <div class="pull-right">
    <input type="text" style="width:300px;" class="form-control" [(ngModel)]="searchData" name="searchData"
           placeholder="请输入订单编号">
    <button class="btn btn-default" (click)="search()">检索</button>
    <button class="btn btn-default" (click)="reset()">重置</button>
  </div>
</div>
<div class="table-responsive">
  <nz-spin [nzTip]="'正在读取订单列表...'" [nzSpinning]="_isSpinning" [nzSize]="'large'" class="admin-spin">
    <table class="table">
      <thead>
      <tr>
        <th style="width:300px;">会员UID</th>
        <th style="width:200px;">订单编号</th>
        <th style="width:100px;">订单类型</th>
        <th style="width:100px;">订单状态</th>
        <th style="width:100px;">积分</th>
        <th style="width:200px;">申请时间</th>
        <!--<th style="width:100px;">操作</th>-->
      </tr>
      </thead>
      <tbody>
      <tr *ngFor="let item of withDrawList">
        <td>{{item.member_uid}}</td>
        <td>{{item.order_no}}</td>
        <td>{{item.order_type === '1' ? '积分入账': '提现'}}</td>
        <td *ngIf="item.order_status == 1">成功</td>
        <td *ngIf="item.order_status == 2">等待处理</td>
        <td *ngIf="item.order_status == 3">处理中</td>
        <td *ngIf="item.order_status == 4">处理异常</td>
        <td *ngIf="item.order_status == 5">失败</td>
        <td *ngIf="item.order_status == 6">锁定不处理入账</td>
        <td *ngIf="item.order_status == 7">由于商户积分不足无法入账</td>
        <td>{{item.point}}</td>
        <td>{{item.created_at}}</td>
        <!--<td>-->
          <!--<a href="javascript:;" *ngIf="item.order_status != 1" (click)="actived_order_no = item.order_no;showConfirm();">同意</a>-->
          <!--<span *ngIf="item.order_status != 1"> | </span>-->
          <!--<a href="javascript:;" *ngIf="item.order_status != 1">拒绝</a>-->
        <!--</td>-->
      </tr>
      </tbody>
    </table>
  </nz-spin>
  <div class="text-center">
    <pagination (pageChanged)="pageChanged($event)" [totalItems]="totalItems" [(ngModel)]="currentPage"
                [itemsPerPage]="itemsPerPage"
                previousText="&lsaquo;" nextText="&rsaquo;" firstText="&laquo;" lastText="&raquo;"
                [boundaryLinks]="true" class="pagination-sm"></pagination>
  </div>
</div>

<app-notification [type]="type" [message]="message" [isShow]="isShow"
                  (promptIsShow)="isShow = $event;"></app-notification>
